<%--
  Created by IntelliJ IDEA.
  User: sun
  Date: 2019/5/6
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>处理登录</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String name = request.getParameter("userName");
    String psw = request.getParameter("psd");
    String remb = request.getParameter("rember");
    if(name.equals("zhu") && psw.equals("111")){
        session.setAttribute("userName",name);
        //response.sendRedirect("GoodServlet");
        response.sendRedirect("list.jsp");
        //response.sendRedirect("AdminuserList.jsp");
    }else{
        // 回到登录
        request.setAttribute("msg","请核对用户名和密码");
        // 转发
        request.getRequestDispatcher("Login.jsp").forward(request,response);
    }

%>
</body>
</html>
